package com.jade.store.wechat.vo;

import com.jade.bss.base.utils.EntityVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * 微信消息管理
 * User: JinYa 2009_jinya@163.com
 * Date: 2016-4-25
 * Time: 15:01
 * Version : 1.0
 * Remark:
 * History:
 */
@Data
@ApiModel(value ="微信消息管理")
public class WechatMsgVo extends EntityVo{
    //用户的昵称
    @ApiModelProperty(value = "会员编号")
    private long crmId;
    @ApiModelProperty(value = "会员code")
    private String crmCode;
    @ApiModelProperty(value = "用户的昵称")
    private String nickname;
    @ApiModelProperty(value = "头像")
    private String headimgurl;
    @ApiModelProperty(value = "开发者微信号")
    private String appId;
    @ApiModelProperty(value = "开发者微信号")
    private String ToUserName;
    @ApiModelProperty(value = "发送方帐号")
    private String FromUserName;
    @ApiModelProperty(value = "消息类型")
    private String MsgType;
    @ApiModelProperty(value = "事件类型，SCAN")
    private String Event;
    @ApiModelProperty(value = "事件KEY值")
    private String EventKey;
    @ApiModelProperty(value = "用户的昵称")
    //二维码的ticket，可用来换取二维码图片
    private String Ticket;
    @ApiModelProperty(value = "地理位置纬度")
    private String Latitude;
    @ApiModelProperty(value = "地理位置经度")
    private String Longitude;
    @ApiModelProperty(value = "地理位置精度")
    private String AddresPrecision;
    @ApiModelProperty(name = "文本消息内容")
    private String Content;
    @ApiModelProperty(value = "消息id")
    private String MsgId;
    @ApiModelProperty(value = "图片链接")
    private String PicUrl;
    @ApiModelProperty(value = "图片消息媒体id")
    private String MediaId;
    @ApiModelProperty(value = "语音格式")
    private String Format;
    @ApiModelProperty(value = "用户的昵称")
    //	视频消息缩略图的媒体id，可以调用多媒体文件下载接口拉取数据。
    private String ThumbMediaId;
    @ApiModelProperty(value = "地理位置维度")
    private String Location_X;
    @ApiModelProperty(value = "地理位置经度")
    private String Location_Y;
    @ApiModelProperty(value = "地图缩放大小")
    private String Scale;
    @ApiModelProperty(value = "地理位置信息")
    private String Label;
    @ApiModelProperty(value = "消息标题")
    private String Title;
    @ApiModelProperty(value = "消息描述")
    private String Description;
    @ApiModelProperty(value = "消息链接")
    private String Url;
    @ApiModelProperty(value = "创建编号")
    private long creatorId=0;
    @ApiModelProperty(value = "创建者")
    private String creator;
    @ApiModelProperty(value = "创建时间")
    private Date createTime = new Date();

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    @Transient
    private WechatUserVo wechatUser;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getToUserName() {
        return ToUserName;
    }

    public void setToUserName(String toUserName) {
        ToUserName = toUserName;
    }

    public String getFromUserName() {
        return FromUserName;
    }

    public void setFromUserName(String fromUserName) {
        FromUserName = fromUserName;
    }



    public String getMsgType() {
        return MsgType;
    }

    public void setMsgType(String msgType) {
        MsgType = msgType;
    }

    public String getEvent() {
        return Event;
    }

    public void setEvent(String event) {
        Event = event;
    }

    public String getEventKey() {
        return EventKey;
    }

    public void setEventKey(String eventKey) {
        EventKey = eventKey;
    }

    public String getTicket() {
        return Ticket;
    }

    public void setTicket(String ticket) {
        Ticket = ticket;
    }

    public String getLatitude() {
        return Latitude;
    }

    public void setLatitude(String latitude) {
        Latitude = latitude;
    }

    public String getLongitude() {
        return Longitude;
    }

    public void setLongitude(String longitude) {
        Longitude = longitude;
    }

    public String getAddresPrecision() {
        return AddresPrecision;
    }

    public void setAddresPrecision(String addresPrecision) {
        AddresPrecision = addresPrecision;
    }

    public WechatUserVo getWechatUser() {
        return wechatUser;
    }

    public void setWechatUser(WechatUserVo wechatUser) {
        this.wechatUser = wechatUser;
    }

    public String getContent() {
        return Content;
    }

    public void setContent(String content) {
        Content = content;
    }

    public String getMsgId() {
        return MsgId;
    }

    public void setMsgId(String msgId) {
        MsgId = msgId;
    }

    public String getPicUrl() {
        return PicUrl;
    }

    public void setPicUrl(String picUrl) {
        PicUrl = picUrl;
    }

    public String getMediaId() {
        return MediaId;
    }

    public void setMediaId(String mediaId) {
        MediaId = mediaId;
    }

    public String getFormat() {
        return Format;
    }

    public void setFormat(String format) {
        Format = format;
    }

    public String getThumbMediaId() {
        return ThumbMediaId;
    }

    public void setThumbMediaId(String thumbMediaId) {
        ThumbMediaId = thumbMediaId;
    }

    public String getLocation_X() {
        return Location_X;
    }

    public void setLocation_X(String location_X) {
        Location_X = location_X;
    }

    public String getLocation_Y() {
        return Location_Y;
    }

    public void setLocation_Y(String location_Y) {
        Location_Y = location_Y;
    }

    public String getScale() {
        return Scale;
    }

    public void setScale(String scale) {
        Scale = scale;
    }

    public String getLabel() {
        return Label;
    }

    public void setLabel(String label) {
        Label = label;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String title) {
        Title = title;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String description) {
        Description = description;
    }

    public String getUrl() {
        return Url;
    }

    public void setUrl(String url) {
        Url = url;
    }

    public long getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(long creatorId) {
        this.creatorId = creatorId;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public long getCrmId() {
        return crmId;
    }

    public void setCrmId(long crmId) {
        this.crmId = crmId;
    }

    public String getCrmCode() {
        return crmCode;
    }

    public void setCrmCode(String crmCode) {
        this.crmCode = crmCode;
    }
}
